STEP 4: Let's have our sprite say the name that the user entered.

  • Click on . Drag out Say. Erase the text including quotation marks.
  • Type the variable user_name in the parentheses in the .say() command.
  • Run your program to see your sprite say the name you enter in the question prompt.
  • Since our sprite says a value that changes depending on the user, we use a variable in the say command.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)